<?php
namespace Api\Controller;
use Think\Controller;
class PrizeController extends Controller {

    /*奖品列表  开发人：周弈男*/
    public function allprize(){
       $prize=M('prize');
       $prize=$prize->select();
       if($prize==null){
          $this->ajaxReturn($prize);
       }else{
          $this->ajaxReturn($prize);
       }
    }
    /*奖品信息  开发人：周弈男*/
    public function getprize(){
       $prizeid=$_GET['prizeid'];
       $prize=M('prize');
       $prize=$prize->where("prizeid=$prizeid")->find();
       if($prize==null){
          $this->ajaxReturn($prize);
       }else{
          $this->ajaxReturn($prize);
       }
    }
}
